package com.leosoft.heatmonitor.service.transactional;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.leosoft.heatmonitor.dao.RoleDAO;
import com.leosoft.heatmonitor.model.Role;

@Component("roleService")
public class RoleService {

	@Autowired
	private RoleDAO roleDAO;

	public List<Role> list() {
		return roleDAO.list();
	}

	public Role getById(String roleId) {
		return roleDAO.getById(roleId);
	}
}
